package com.hdoit.ares.web.insu.modelconfig;

import com.hdoit.ares.web.insu.providers.InsuranceChannelNameStatusProvider;
import com.hdoit.ares.web.insu.providers.InsuranceStatusProvider;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      lvsi
 * @email       
 * @createtime  2017年12月09日 21:45:12
 * @comment
 */
public class InsuranceSearchConfig extends ModelMetadataAttributeConfiguration{
    public InsuranceSearchConfig(){
        this.setProperty("insuranceOne")
            .hasAttribute(new DisplayNameAttribute("所属险种"))
        .hasAttribute(new DropDownListAttribute());

        this.setProperty("insuranceTwo")
            .hasAttribute(new DisplayNameAttribute("险种名称"))
        .hasAttribute(new DropDownListAttribute());

        this.setProperty("insuranceName")
            .hasAttribute(new DisplayNameAttribute("产品名称"));

        this.setProperty("status")
            .hasAttribute(new DisplayNameAttribute("保险状态"))
            .hasAttribute(new DropDownListAttribute(new InsuranceStatusProvider("senior")));

    this.setProperty("channelName")
    .hasAttribute(new DisplayNameAttribute("渠道名称"))
    .hasAttribute(new DropDownListAttribute(new InsuranceChannelNameStatusProvider("senior")));
   }
}
